/**
 * 
 */
package cre.sample.test.thread;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.BooleanUtils;

/**
 * @author Cre.Gu
 *
 */
public class LockUtil {

	private static Map<String, Boolean> lockMap = new HashMap<String, Boolean>();

	public static boolean isLock(String projid) {
		if (lockMap.containsKey(projid))
			return lockMap.get(projid);
		return false;
	}
	
	public static void put(String projid,Boolean lock){
		lockMap.put(projid, lock);
	}
}
